<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>用户管理列表</title>
		<link rel="stylesheet" href="../../css/ztreeStructure.css" type="text/css">
		<link rel="stylesheet" href="../../css/zTreeStyle/zTreeStyle.css" type="text/css">
		<link rel="stylesheet" type="text/css" href="../../css/style.css"/>
		<link rel="stylesheet" type="text/css" href="../../css/list.css"/>
		<link rel="stylesheet" type="text/css" href="../../css/layui.css"/>
	</head>
	<body>
		<!-- 蓝色背景区域 -->
		<div class="wrap">
			<!-- 白色可用区域 -->
			<div class="canuse">
				<!------ 位置 ------>
	            <p class="contentText local">
					<span>位置：系统管理 >用户管理</span>
				</p>
	             <div class = "flex-td-18 floatLeft" style="height: 100%;background: rgb(245, 250, 255);min-height: 400px;">
					<input style="width: 120px; margin: 5px 0 0 10px;" type="text" name="" id="projectSearch" value="" />
					<span style="margin-left: 10px; text-indent: 22px;" class="bgd_blue_search" onclick="TaskList.projectSearch();">查询</span>
					<div  id="treeDemo" class="ztree"></div>
				</div>
	            <div class = "flex-td-82 floatLeft">
            	<!-- 搜索区 -->
	            <div class="search_area">
                    <h4 class="sel_title"><img src="../../img/list/brand1.png" /><span>用户管理查询条件</span></h4>
                    <div class="select_area">
                        <div class="select_text clear">
                        	<div class="label_input">
	                           <label class="contentText">用户姓名：</label> <input type="text" name="" id="">
	                           <label class="contentText">组织机构：</label> <input type="text" name="" id="">
	                            <label class="contentText">用户工号：</label> <input type="text" name="" id="">
                        	</div>
                            <div class="floatLeft">
	                            <button class="btn_search bgd_blue_search">查询</button>
	                            <button class="btn_clear bgd_white_clear">重置</button>
                            </div>
                        </div>
                    </div>
	            </div>
	            
	            <!-- 列表区 -->
	            <div class="show_list">
						<div class="title_operate">
					<h4 class="sel_title">
						<img src="../../img/list/brand1.png" /><span>用户管理列表</span>
					</h4>
						<div class="operate_area" id="operate_area" style="display: block">
							<!--<a href="userAdd.html" class="bgd_add img_hand">增加</a> -->
							<a class="bgd_delete img_hand" id="del">删除</a>
							<a class="bgd_blue_four img_hand" id="resetPassword">重置密码</a>	
						</div>
				</div>
                	<div class="list_area">
                        <!-- 信息列表区 -->
                        <div class="info_area">
                            <table class="tablelist" border="1" cellspacing="0" cellpadding="0">
                                <tbody>
								<tr class="menuText list_head">
									<th class="checkSelectAll"></th>
									<th class="">用户工号</th>
									<th class="">用户姓名</th>
									<th class="">所属机构</th>
									<th class="">用户角色</th>
									<th class="">联系电话</th>
									<th class="">用户email</th>
									<th  class="">性别</th>
									<th  class="">IC卡号</th>
									<th  class="">密级</th>
								</tr>
							</tbody>
                                <tbody class="tablelist">
                                    <tr class="listTableText list_list">
                                        <td><input type="checkbox" class="input_checkBox" name="" id="" value=""></td>
                                        <td><a class="img_hand editBlue" href="userUpdate.html">A1001</a></td>
                                        <td>小张</td>
                                        <td>七分厂</td>
                                        <td>车间主管</td>
                                        <td>15826435971</td>
                                        <td>15826435971@163.com</td>
                                        <td>男</td>
                                        <td></td>
                                        <th  class="">秘密</th>
										<!--<td><img src="../../img/button/printer.png" /></td>-->
                                    </tr>
                                    <tr class="listTableText list_list">
                                        <td><input type="checkbox" class="input_checkBox" name="" id="" value=""></td>
                                        <td><a class="img_hand editBlue" href="userUpdate.html">A1001</a></td>
                                        <td>小张</td>
                                        <td>七分厂</td>
                                        <td>车间主管</td>
                                        <td>15826435971</td>
                                        <td>15826435971@163.com</td>
                                        <td>男</td>
                                        <td></td>
                                        <th  class="">秘密</th>
                                    </tr>
                                    <tr class="listTableText list_list">
                                       <td><input type="checkbox" class="input_checkBox" name="" id="" value=""></td>
                                        <td><a class="img_hand editBlue" href="userUpdate.html">A1001</a></td>
                                        <td>小张</td>
                                        <td>七分厂</td>
                                        <td>车间主管</td>
                                        <td>15826435971</td>
                                        <td>15826435971@163.com</td>
                                        <td>男</td>
                                        <td></td>
                                        <th  class="">秘密</th>
                                    </tr>
                                    <tr class="listTableText list_list">
                                       <td><input type="checkbox" class="input_checkBox" name="" id="" value=""></td>
                                        <td><a class="img_hand editBlue" href="userUpdate.html">A1001</a></td>
                                        <td>小张</td>
                                        <td>七分厂</td>
                                        <td>车间主管</td>
                                        <td>15826435971</td>
                                        <td>15826435971@163.com</td>
                                        <td>男</td>
                                        <td></td>
                                        <th  class="">秘密</th>
                                    </tr>
                                    <tr class="listTableText list_list">
                                        <td><input type="checkbox" class="input_checkBox" name="" id="" value=""></td>
                                        <td><a class="img_hand editBlue" href="userUpdate.html">A1001</a></td>
                                        <td>小张</td>
                                        <td>七分厂</td>
                                        <td>车间主管</td>
                                        <td>15826435971</td>
                                        <td>15826435971@163.com</td>
                                        <td>男</td>
                                        <td></td>
                                        <th  class="">秘密</th>
                                    </tr>
                                    <tr class="listTableText list_list">
                                       <td><input type="checkbox" class="input_checkBox" name="" id="" value=""></td>
                                        <td><a class="img_hand editBlue" href="userUpdate.html">A1001</a></td>
                                        <td>小张</td>
                                        <td>七分厂</td>
                                        <td>车间主管</td>
                                        <td>15826435971</td>
                                        <td>15826435971@163.com</td>
                                        <td>男</td>
                                        <td></td>
                                        <th  class="">秘密</th>
                                    </tr>
                                    <tr class="listTableText list_list">
                                      <td><input type="checkbox" class="input_checkBox" name="" id="" value=""></td>
                                        <td><a class="img_hand editBlue" href="userUpdate.html">A1001</a></td>
                                        <td>小张</td>
                                        <td>七分厂</td>
                                        <td>车间主管</td>
                                        <td>15826435971</td>
                                        <td>15826435971@163.com</td>
                                        <td>男</td>
                                        <td></td>
                                        <th  class="">秘密</th>
                                    </tr>
                                </tbody>

                            </table>
                        </div>
	                    <!-- 页码区域 -->
	                    <div class="page_area contentText clear">
	                    	<div class="page_sum">
	                    		共<span class="page_number"> 3 </span>页&emsp;每页 10 条&emsp;共<span class="info_sum"> 27 </span>条记录
	                    	</div>
	                        <div class="page_jump">
	                        	<span>跳转到&emsp;第</span>
	                        	<input type="text" name="" id="" value="" />
	                        	<span>页&emsp;</span>
	                        	<button>Go</button>
	                        </div>
	                        <div class="page-pull-right async-page">
	                            <button>上一页</button>
	                            <button class="select_page">1</button>
	                            <button>2</button>
	                            <button>3</button>
	                            <button style="color: rgb(30, 30, 30);">▪▪▪</button>
	                            <button>98</button>
	                            <button>99</button>
	                            <button>100</button>
	                            <button>下一页</button>
	                        </div>
	                    </div>
                    </div>
                </div>
				</div>
			</div>
			<!-- 版尾  -->
			<div class="ending">
				Copyright 2019-2020 磐基技术有限公司
			</div>
			
			<!-- 等待加载 -->
			<!--<div class="loader"><p class="load_hint">请等待加载••••••</p></div>-->
			
		</div>
	</body>
	<script type="text/javascript" src="../../js/3rd/ztree/jquery-1.4.4.min.js"></script>
	<script type="text/javascript" src="../../js/3rd/ztree/jquery.ztree.core-3.5.js"></script>
	<script type="text/javascript" src="../../js/3rd/ztree/jquery.ztree.excheck-3.5.js"></script>
	<script type="text/javascript" src="../../js/3rd/ztree/jquery.ztree.exedit-3.5.js"></script>
	<script type="text/javascript" src="../../js/sysmanager/organizationTree.js"></script>
	<script src='../../js/common/common.js' type='text/javascript' charset='utf-8'></script>
	
	<script type="text/javascript">
		var h = document.documentElement.clientHeight;
		$(".wrap").css("height", h);
		
		// 获取每行 td 的兄弟节点
		$("td").hover(   
			function () {      
				$(this).parent().children().addClass("td_hover");   
			},    
			function () {      
				$(this).parent().children().removeClass("td_hover");   
			}
		);
		// 删除
		$("#del").click(function(){
			var list = [];//项目中要删除的id集合
				var checks = $("input[type='checkbox']:checked");
				$.each(checks,function(index, obj) {
					list.push(obj.id);
				});
			
				if(list.length <= 0) {
					alert("请至少选择一条数据");
					return;
				}
				
				window.confirm("确定要删除吗?",function(result){
				});
		})
		//重置密码
		$("#resetPassword").click(function(){
			var list = [];//项目中要删除的id集合
				var checks = $("input[type='checkbox']:checked");
				$.each(checks,function(index, obj) {
					list.push(obj.id);
				});
			
				if(list.length <= 0) {
					alert("请选择重置密码的用户");
					return;
				}
				if(list.length == 1) {
					window.confirm("确定要进行密码重置吗?",function(result){
						alert("密码重置成功");
					});
				}else if(list.length >= 1){
					alert("只可以选择一位用户进行密码重置");
					return;
				}
				
		})
		//删除规则
	   /* function delUserGroup() {
		
	        alert("提醒:删除时，正在使用的用户组将无法删除！");
	        $.ajax({
	            type : 'POST',
	            url : 'userGroup/delUserGroup',
	            data : JSON.stringify(list),
	            contentType : 'application/json; charset=utf-8',
	            async : true,
	            cache : false,
	            success : function(data) {
	                alert(data == 'success' ? "删除成功" : "被使用：无法删除!!!");
	                if (data != 'success') {
	                    return;
	                }
	
	                var current = PageUtils._currentPage['userGroupPage'];
	                PageUtils.pageClick(current, 'userGroupPage');
	            }
	
	        });
	    }*/
	</script>
	<style type="text/css">
		.ztree li span.button.add {
			margin-left: 3px;
			margin-right: -1px;
			background-position: -144px 0;
			vertical-align: top;
			*vertical-align: middle
		}
	</style>
</html>
